home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_09_12
/
9n12114b
< prev
next >
Wrap
Text File
|
1991-10-19
|
477b
|
21 lines
/* LISTING 5 - CIRCLE.C */
#include "obj.h"
/* file-static getcolor member function */
static int circle_getcolor(CIRCLE *pc)
{ return pc->color; }
/* file-static setcolor member function */
static int circle_setcolor(CIRCLE *pc,
int val);
{ return (pc->color = val); }
/* global CIRCLE_ACTIONS package */
CIRCLE_ACTIONS cact =
{
circle_getcolor, circle_setcolor
}; /* initialize the action package */